-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: mirror ubuntu:22.04 to ghcr.io #135574
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Left a few comments. I think that this is simple enough to keep in the YAML file for now.
e61ea63
to
f5fe0a0
Compare
Looks good, thanks! I guess as usually with privileged GH actions, the only way to try it is to merge and see what happens :) @bors r+ rollup |
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#134754 (Implement `use` associated items of traits) - rust-lang#135481 (coverage: Completely overhaul counter assignment, using node-flow graphs) - rust-lang#135504 (Allow coercing safe-to-call target_feature functions to safe fn pointers) - rust-lang#135561 (Update docs for `-Clink-dead-code` to discourage its use) - rust-lang#135574 (ci: mirror ubuntu:22.04 to ghcr.io) - rust-lang#135585 (resolve symlinks of LLVM tool binaries before copying them) - rust-lang#135588 (Add license-metadata.json to rustc-src tarball.) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#135574 - marcoieni:docker-ghcr-mirror, r=Kobzol ci: mirror ubuntu:22.04 to ghcr.io
I manually ran this, but it didn't work. |
This PR mirrors the
ubuntu:22.04
image from DockerHub to ghcr.io.Tested here. In my repository, I tried pushing the ubuntu 18.10 image, which you can see it was pushed here.
Why is this needed
The PR job mingw-check-tidy always downloads the base layer from DockerHub, while the other jobs rely on the cache to download the base layer.
To avoid the risk of being rate limited by DockerHub, we want to download the base layer from ghcr.io, which doesn't have rate limits on pulls.
Agreed in zulip.
Next steps
Once this workflow runs, we can edit the
mingw-check-tidy
Dockerfile to use it.Related to rust-lang/infra-team#176
r? @Kobzol